package com.dh.testsjsx;

import java.util.Random;

public class Wind /*extends Instrument*/{
    private static Random rand=new Random(47);

    private final int i4=rand.nextInt(20);
    static  final int I5=rand.nextInt(20);


    private final Instrument v1=new Instrument(1);
    static final Instrument v2=new Instrument(3);


    public static void  main(String args[]){
        Wind w=new Wind();
        Wind w1=new Wind();
       /* Instrument.tune(w);*/
        System.out.println(w.i4);
        System.out.println(w1.i4);
        System.out.println(w.I5);
        System.out.println(w1.I5);
        System.out.println("-----------------------");
        System.out.println(w.v1.i);
        System.out.println(w1.v1.i);
        System.out.println(w.v2.i);
        System.out.println(w1.v2.i);


    }
    public void play(){
        System.out.println("Wind play()");
    }
}

class Instrument{

    int i;
    public Instrument(int i){
        this.i=i;
    }
    public void play(){
        System.out.println("Ins play()");
    }
    static void tune(Instrument i){
        i.play();
    }
}

abstract class bb{

}
abstract class  aa extends bb{
    public abstract void a();
    public void b(){

    }
}